Looks like super-weird indentation is going on in this function.