Fixed 'generatedByList' function.