Added filehandler to run task()