Removed unsigned as it was clipping the value and leaving it incorrect