Do drop while and move tail recursive to just recursive functions.