Added termination after given amount of puts.