Fixed typo in method name. Added logging. (#545)