Added rudimentary authorization and routing