Added an overloaded method to modify datastreams which checks if the datastream has been recently modified and throws an exception if it has.