added another input option for delay