Fix callback functions and add support for uint