Finished cleaning code