It would be better if we could refactor the control flow so we don't have to repeat these lines which also occur after the last else statement in this file.