Flanged motor