Replaced LEINA code for AGIN code