Make it a server so its easier to test