Add new phase error detector code... works great!