Multiple purpose shared classes and functions.