Setting module.exports in the beginning rather than in the end.