Added some last minute touches to make sure that the 3 most recent loaded programs are the ones that execute, essentially overwritting any previous ones once memory is full.