Compatibility with Delphi - thanks to Carlos Cantu.