Moved gentry run code into gentry thread init