Added temporary code to rlib to help with debugging