Surface: Added methods (setFlags, isFlagged)