Added DimensionGuard

Closes #96