Use open-closed method to add extensions.