Replace list search with faster stack operations.
Add newline.