Slight changes to output.
Small fix to stop condition.