Added parent() accessor to context and refactored plugin code to use it.