Also changed attachments to use ids instead of objects. Best to use Ids otherwise issues such as objects not deleting successfully occur, if not outright causing persistence errors during saving.