Removing unnecessary log message
Fixing variables declaration