Added dirty freeze functionality