Slightly less hacky dynamic method dispatch.