File masks now working properly