Added possibility to use one dimension multiple times