Added script authentication to allow history logging and e-mail notifications