Updated script, and added output