Updated script to capture real events