Implemented dynamic dispatch.