Use array of objects instead of a single object