Implemented Compass functionality