Got the input/output reversed