Updated script to show correct timestamp