Added logio support, going to need a refactor