Lots of changes trying to work out communication between the server and the app.