Fixing improper methodName and restMethod.