Debug AR sample client

Though not necessarily optimized, this is needed to make the demo happen.