Changed signature to flags field