Renamed generateClientFunc into generateFuncWrapper. Added registerFuncImplementation.