Added functionality for overlays