Added type checking for the paused result