More work on integrating vision processing code with WaitForGoal command.