Some common scripts/functions for future reference.