Define metrics and measure the current process.