Readded factory initializer

Oops guess I shouldn't have deleted this. New patch version IMO.