Started putting together server loop