Adaptation of existing script