Bug fixed. Was still referring to quality filter when trying to run preprocess
Removed redundant variable declaration