Added ability to create tasks which just runs once