Fixing some old functions used on Cocoa Code.