Added some compatability to the jp read routine