Basic phase cancellation from Licson.net