added direction controller.