Add call_possible_function as a utility function