Converted module to AMD