Added checking about private groups