This new code you added doesn't look like it would be removing the productSchedule...  I'm confused by how this works based on what was removed.  It might be right, it just doesn't match the comment.