Resolving issue with autoloading