Initial changes to the structure, added compass functionality.