Added the start of a basic phase tracker.