Useful scripts to modify for your own use