Added a simple two state switch (for the server)