Add libraries and callbacks