Implemented decode