Added instance creation overriding mechanism.