Basic startup in pig rewritten