Added custom function to clean data.