Added _interval function