Partially reverted last commit.
Added missing require.