Added tryTwice option