Remote query

Just leaving this here for now.  More to come.