Added check of input rh/rj
Added check of input rh/rj