Added documentation
Added function