Forgot to initialise output dictionary