Start of making callbacks work.

Need to implement on the GUI once Jhaig finishes it.