Added adaptive beam and structured sub labels. Some tests still failing...