Added expect with fetching output