Merged the two threads about the two codes,