Added some functions

Added some functions