Added simple factory.