Adding gcm code