Refining ctrl-p restriction