Implemented --reverse flag