Fix mode bug, get a continuously running timer working