Move proxyMethods below the if statement please