Updated version of log4j
Extracted inner loop of getBestRecipe into separate method.