Added a second dimension, aswell as a Ripple function