Removed log and unneeded variable.