Add callback to the ioloop