Added log statements.