Rewrote completely from scratch. Everything has changed. Probably
nothing works.