Post optimization of Code