Cleaned up QueryBan.