Added some more extension methods.