Working out what insertions I want to do first