Fixes in storing custom flags; possible to append new messages with custom flags