Rewrite from zero, delete external libraries.