Implementing resume functionality