Implementation for gl-init-rs