Remove init function and add variable to M
Declare variables as local
Require needed script