Basic servo intervalmeter code