Trying to fix input/output