-cleaned up loggin.