Finish documenting functions