First step in algorithm implementation.