Implement splitLastOutput