Remove console logging
Removed buggy check