Consolidated platform querying code