Added several functions.