Apply patch from Neil McCalden to fix syntax issue.