Preparation for recording spectrum.