Added the ability to return an array of results