Implemented grammer loading