Added task create. Added debug flag.