Added function to set/unset the RTS flag