Merged decode and master