Developing query module.