Removing some logging and fixing bug.