Added methods to components.py