Moved module initialization into an __init__ method.