Add some methods to make vectors easier to use.