Added flat result output