The backend for the compass project