I think this could be refactor if the other option is interval == 0