Added ABS. And added GCM registration logic