Attempt at bookkeeping