Initial queries and stuff.