Add some functions. Close #1.