Integrated Rafael's codes and Agurz's codes.