Created extract functionality. Still needs ambigious key support and refactoring for continue dict.