Added some function in.