Moved GA code to bottom