Keeping side-effects as small as possible