Added feature to execute external scripts