Add package structure
Stripped code from max/maxrules