Fixes task code.
Fixes file type checking.