Moved GA code to head