Scrapped module concept. Added named types and auto registration.