Added ring stuff that works from -main and lein run