Add overloaded define_reverse function