Removed console log and variable that was only used once