Small script improvements

Hi Anton,

Please find my pool request. Also could you please specify license type for your code?

Regards,
Artem