Cleanup serverside logic