Add support for require calls

Resolves #147