Added inline IO methods