Refactored to use AnchorMode and AnchorPosition rather than Top,Left