Updated preprocessing scripts