Fixed ripple effect. Now vector needs to be defined as an array.