The intervention was a modified version of the Mother-Infant Transaction Program , and comprised eight one-hour sessions during the last week before discharge and four home visits at 1 , 2 , 4 and 12weeks post-discharge .