Added refactored module.exports