New interval finder code and sleep tracker