Add kind.
Fix global variable.