Why is all this code getting indented another level in?