modified script to include info and duration