Layer visibility in newer files is int (instead of bool).