Endpoints work (switch statement set up)