Got the thing working, still not done the output