Minor changes.
Added phaseListener and logging for every method.