Added skipped zIndex prevention in step function