Handles case where first argument is another function.