Add two func for interface.