Moved last outside check.