Put an if statement to check if loading should be done.