Necessary for the square diamond algorithm, neglected to include.