There could be other reasons for why the Mac is freezing ...
Have you verified the startup disk for errors?
Launch Disk Utility located in HD > Applications > Utilities
Select the startup disk on the left then select the First Aid tab.
Click: Verify Disk
if repairs are necessary, insert the install disc that came with your Mac and follow the instructions here.