Codes for interfacing with OpenBUGS