Converted all modules to AMD.