Move logic to apply.js