Added replay class to simplify the process