Refactored client, client now tells the server when its status has been updated