I don't like this. What if the end of `frontendStore` and actual `frontendBucket` differ? I will refactor these.