Cleaned up Glance client code.