PC12 update with flags and unit test passed