Moved internal context function declarations.