Add callbacks class, deals with canonical ids and such