Pieced together a working RS route, don't yet understand everything
Cleaned up the code and the logs, added proper unit test