Adding some new functions.