Miscellaneous clojure code