Renamed variable to be less ambiguous
Added loading page