Made most of the ptb functions private