Removed old orientation code and logging