Add more IO related functions from pstat