The function savePolicy is defined but not used anywhere else in the code... I would like to know why because I think it is why it isn't working.