Extended grammar for external lab