Added command-p convenience function
Switched to using standard command-p function