Updated inersect to return two values.