Added grammar validations and complementary exceptions