Added support for polymorphism at compile time.