PRE updates - need to implement the rest of the algorithm now that this is working'