Added writetask to makefile