Added the resource files need and removed a lot of unused variables.