Console logs also cause scope errors