Documented some functions