Modify according to @alalek.