Added task_valid function
Added dumped moo code
Renamed $builder to $prog