Added more helper functions in pteracuda_helpers