Make fork mode configurable