Got Query roughly working.