Maintained "Invalid syntax!" error message consistency and method visibilities.