Added basic navigation logic.