Update execute function to allow scripts to run