Added a journal function