Added calls to the logging statement.