Add different function to manage recursivity