Fixed code structure for require()