Similar legislation has been proposed in other states and passed in California.