Added basic preprocessing steps.