Delete function implementd, script dependencies included