Added some gcm code