Added factory
Fixed seed