Improve computation speed of JDE ASL. Add error output for brf and prf