Conversion to modern AMD style would be welcome.