Got PCL version working. Implemented basic auth support