Require modules and optimization