Change position of decode method.