Documenting function.