Function name change and adding documentation