Helper code for use with the "ledger" command-line tool