Fixing method declaration and allowed method names.