Refactored out whiteSpaceLabels and added variable indexing