Removed logging code