Code for data module.