Added rjags implementation