Changed to a client-server system. WIP, broken build.