Added a fallback factory for when no other factory has been registered.