Debug ElseIf

Very strange function...