Imported a small handful of common extension methods.