Add generic function of jpstat