Backend: Add a main function