Add boundary computation.