Added automatic script execution