Added two new functions.