Virtual-ified some functions in Entity