Added functions for finding ledger lines