Allow to be used as an extension.

Signed-off-by: crynobone <crynobone@gmail.com>