Edited linktimeout and timesendstate. incorrect iteration calculations