Fix imports. Use logger instead of system prints.