Move licensing
Declare functions as local vars then assign