Minor: added some functions.