Added resume functionality