First attempt at adding resume facility. Not working properly.