Refactor using bind.