Add some convenient functions