Moving task status file access to a module.