Coments added for each function