Added some documentation to describe the newly introduced function.