Rewriting GCM service