Changed delay from string to int