Added Compass code