Initial work with decoder