Finished up decode method.