Added callback function to use the Hseih hash