Add conversion from time to levels, dir and fname.