Added browserSync, error checking