the compressor in a refrigeration system is controlled solely by a variable speed drive which controls the motor of the compressor by virtue of the varying of the frequency of the electricity provided to the motor . to minimize the initial cost and to minimize operating costs , the variable speed drive is cooled by refrigerant from the refrigeration system which permits the use of a smaller drive , and the variable speed drive is operated at , or approaching , a unity power factor .