Added start of assignment algorithm.