Make glance script more graceful.