Added an option for console logging errors rather than having annoying alerts