Logging and GCM (Lots of changes, may need force update)