Renamed factory to init because it sounds better