New version of script. Added support for custom reactions placeholders.