Added auxiliar functions