Retrieving the Last Value from a Variable