Saved some space by writing P and W sequentially