Clean up "p" script