Consider separating some state changing functions to a server
Consider separating some state changing functions to a server