Removed a needless console log and attempting to improve logging