Switched to more self-explanatory variable names.
Moved anchors to always be beginning of the story.