Improved error handling for incorrectly formatted method calls.