Cook() method in CookState.cs