[quote=Nimda] But the number of lines is highly irrelevant. [/quote] Not necessarily. The old version of the function had very many lines, which meant lots of complication (and there was a lot of complication). So much, in fact, that I could hardly understand what was happening to make the list of steps. So I made a new step-making function which was simple and concise. For example: The old version needed an entire function to specify that an item was the last item in a tree and had no recipe. All I do is, in one line, add a third value to the array that holds the count of the item and the name of the item that says "hey, this is the bottom of the tree". Then I'm going to use this value in an if statement in another function to say "hey, since this is the bottom of the tree, it should go in "find this" instead of "make this"".