* Variables states weren't reset
* Fixed output script and data