Rework server process request functionality