Added last wait 1 secs to ensure Red LED remains off.