Added the visible check.