Moved task file handling into visualiser class