$col variable was undefined in it's scope
Merge pull request #295 from Jeff-Lewis/master-for-pull3

$col variable is undefined in its scope