Initial work on coverage calculation