A foreign function interface for the CONTROL scripting language