Working and tested script forDiesel (version 1.0.3)