Updated to reflect the new extension interface.