Extracted the common interface.