Added Server loop that handles client requests