Glass Scan Server side code