Merged the implementations into pentagon domain