Added scalar division and shifting.