Modify reference implementation.