Remove console.warn from code to avoid chattiness when being used