Remove unused variables and add load of work scripts