Fix some issues and improve some features

You should use Tools::getValue() instead