Added decode methods.