Added to check to make sure data had been loaded. Added update command