Better structure

Cleaner and easier to maintain.
exports.success is enough fyi