Added remove_from_call_stack utility function