Implement logic for active element.