Added _ptb_get_property function and some minor fixes