Added scaled output, updated flags.