How does the GCM work?