Documented and function moved to end