Updated code for store.