Added the ability to use nile in preprocessing