Added explainatory comment above joystick function.