Rewrote bracket parsing code, added subline method