Start of central script (refactoring)
Grammar
Start of refactoring