Refactor internalBind