Removed duplicate initialization of the "rev" variable.