Removed unused variables from object