Set up modules correctly.