Improved require support.

Added destroy method.