Refactored negating variables.