feat: Add logic to allow correct usage of possibly overridden functions.