Public constructor on ContextCore