Make entity functions virtual