Fixing orphaned call to clearSelections.

Also removed many log statements.