I've noticed this contains duplicated code that is the same as pre_process(). What was your intentions here?