Updating input, added global