Fixed result outputting