Logging Added to script