Implemented ga initialization and deinitialization