Preparation to first algorithm.