Typed in integration code not tested

Haven't uploaded this so I've no idea if it'll run. Should though