Now writes to the relay when locking/unlocking