Removed log code that shouldn't be there