Modifications for PEP8 compliance.
Adding a better logging message.