Hacky implementation of PTR support