Refactored and added managers.py