Added interval to infinite loop