Fixed tabs and logging in bugs.