Implemented pbeat and pstream