Added formatter function