Added a few extension methods.