Memory management
Support multiline truncation, tail only for now.