Add some functions

Add some functions