After checking reference implementation.