Restored to master version, will work on branch Jags-j0.3-v0.0.3