Created cook time using new function.