Use require instead of define in main