Added `modular_previous` and `modular_next`