Changed output and updated variable