Wrote basic propagation function (no damping yet)