Fixed naming issues and added back ability to specify max task failures.