Commented out console.log() calls because IE