Replaced false with function