Function documentation added