New code submission
New codes from James R