Add reverse and join functions