Updated the lagal keyword processing