Ok. Thanks. So is there a way to get a function which does what I require?