FF and RW functions added