Better routing system on the backend