Added rename funtionality.