Everything done but linked minterval to recording rate