Updated integration code.