Paste functionality and cleanup script