Preliminary work for code handling.