Added support for splitting on newlines