Refactored Anchor Interface. Updated Router Logic.

Also included here is a bunch of refactoring.