Add some data manipulation functions