Miscellaneous functions written for (my own) convenience.
"Gumballs" by joyrex is licensed under CC BY-NC 2.0