New version of decode