Useful scripts (aka smart piece of code)