Functions created and commented