Brian C : added some functions
Brian C: added functions