First working version with signal generator.