Added `both` hook