Completed refactor of accept code, fix QUIT response