Document this function.