Clojure version of the API