Moving functions to a helping functions section