Stop using list.append for better speed.