Added things which Aleks added long ago in a local version of zi_lib for the rtm.