Functionality that should be in the standard library
