Added params for returning JSON (prep for frontend)