Started wiring up a backend. There's lots of duplicate code that could be refactored