Speed up the delete and add colors to buffer