Add dimension parsing