Fixed transaction retries and removed redundant imports.