Better use of require and objects for store.