Implemented split loop highlight. Some refactoring in LoopsTable.