Rewrote the store.List function using joins.