Slight speed improvement in promptcmd