Fixed EOA initialization function