Update fraser code to include optimisations.