Your global vars should be global consts.