First attempt at functioning Compass Code