Modified hutiter to use procedure pointers