Moved code to __init__.py