Moved index and config to top level