Added loading gif to variable definition