Refactor glance
Merge pull request #58 from mirrorcoder/master

Refactor glance