Added simple autoloading functionality