Fix bugs. And add compass.