First version of integrator