Added two methods to test last frame