Added some functionality to GCM.