Sine wave function added