Rewrite to return results as individual objects and rename index to position.