Code for data cleaning.