Move GA code to head