Added switch_chef function