Added missing $window