Changing throws to console.logs