Fixed: variables were not defined
Refactored: unused variables removed
Compiled