Update: Check algorithm. Add line limit 30 lines.