Support more than 24 lines.. Major refactor.