Switched the handleEquity logic to avoid not needed account comparisons.