Adds general structure learning.