Add Promise support to models.