Remove superfluous variable.
Convert print to logging statement.
Update the information for all merged jobs at once.