Duplicate the necessary functionality here.