Added workflow tasks and memorandum logic