Generating sine wave.