Removed unused variable
Removed logging calls