Changed storeViewModel variable to viewModel.