Move decode to here