@Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        String action = request.getParameter("act");
        if(action != null) {
            try {
                RequestContext context = new RequestContext(request);
                if(context.isAdmin()) {
                    int amount = Utilities.chooseParam(request, "amount", 0);
                    
                    switch(action) {
                        case "makepeople":
                            emitWorkers(amount);
                            break;
                        case "wkillfree":
                            AdminTools.wipeFreeWorkers();
                            break;
                        case "wkillall":
                            AdminTools.wipeAllWorkers();
                            break;
                        default:
                            response.sendRedirect("admin.jsp");
                    }
                    
                    response.sendRedirect("admin.jsp?tip=done");
                } else {
                    response.sendRedirect("error.jsp?err=404");
                }
            } catch(SQLException e) {
                log.error("SQLException caught in Admin servlet.", e);
                response.sendRedirect("error.jsp?err=dberr");
            }
        } else {
            response.sendRedirect("admin.jsp");
        }
    }