Added GCM message hanlding code