Note to self: make server cross-thread (volatile)