Start implementing decode logic.