Added function name return to loadMethod