Added spatial function when creating a new store.