Added a cooker object on server and client
Fixed scoping.