Crude but tested query method