Common functions that are often needed but don't really belong anywhere