0 = closed
1 = open