This allows the user to easily put this in a user_data argument or on the context, which would be harder if it were 2 separate arguments.