Added several functions