Nonlinear Schrödinger equation with spatiotemporal perturbations.