Added the ComposeP class.