Adding new sources, including Newton optimizatin algorithm