Implemented Compass control