Now auto detects the modules and initalizes them.