Script implementation.