Added a max number of lines to leave effects turned on.