Added log guard statement.