Refactored to stafflayout so that ledger line code is compatible with red/green test