implemented feedback and added setting for max lines.