Compass code added, but bug.