Removed 'clean up' function from advanced mode