Various scripts for the loop project