Partially working code. stable 2.