Modified top-result to take map to allow using time period utility functions from clojure-common