Intermidiate commit
Added 4th option "interval"