Corrected return type for function pointers