Updated VisibilitiesObject init function.