Task info variable was missing, thus caused script to fail.