Indentation errors in this method. There seem to be tabs around here.
Also, although I used it in early commits, I now discourage the procedure syntax, so add `: Unit =`.