Working through multiline data