Tool almost ready for optimizations.