Implemented rename method