More scripts

Codes to sweep, mainly