Added result_type to custom handlers