Updating function return style per r https://gist.github.com/dariusk/4964067