Adding autoloading and removing all hardcoded dependencies.