Added umd pattern, thanks t3easy