Default NULL value for custom flags in append and storeFlags function arguments for backwards compatibility