Added contiguous timetuples function