Taken out console.log - seeing if it fixes crash