Made const, added boost function pointer generator