Simplified the logic of addition