Add an artificial delay option for testing