Refactored seed code