Added Joystick code