Adding GA. Also fixed end / endif error