Direction tracking and new terminal commands