Convert safe_call to use variable number of arguments.