Implement require.
Cleanup