Fixing many unavailable functions and adding the correct ones.