Converted require_once to loadMethod