Some new functions.