Freeze code works