Tidy up the journal entry function.
Added dependent actions