Scripts to clean circuits