Changed reload function