After I call a public function I want to halt or pause the first function, can this be done?