Implemented reverse functionality