Decode module mostly finished