Preliminary work for EGL implementation