Use IO monads when implementing servers