Trying to split the systematic phase detection into a seperate layer