Implemented resume functionality