Finished the clean processes. Needs to be tested. Need to write finalize process