Added dimensions filter to store and get data

This could be extracted to a `fetch_dimensions` function.