Code updates, max delay added to keys sequence