Got integration working.
Will work out the glitches later.