AD script added