Moved GA code to end of body