Added allan variance code