Use a map of function ptr instead of my class beacause the class wasn't working on windaub