Added functionality to only keep last 5 gcm ids