Use proper file bitmasks