Rough decoder added.