More flexible file modes