Added code for tilt control via phone