Add load function to get tasks form file