Cover function changed to reflect the previous changes.