Moved basic PCL function into client