Moved register calls to connect.py