Finished all error cases in Expansion algorithm.