Fixed loggin issues.