Added logic to reset the progress of the Layer