Added some log statements.